{% extends 'layout/main.html' %}
{% from 'macros/_macros.html' import form_field %}
{% block content_header %}
    <h1>
      更新用户
    </h1>
    <ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">用户管理</a></li>
    <li class="active">更新用户</li>
    </ol>
{% endblock %}

{% block content %}
<div class="box">
  <div class="box-body">
      <form method="post" action="">
        {{ form.csrf_token }}
        <input id="thumb" name="thumb" type="hidden">
        {{ form_field(form.username, class_='form-control')}}
        {{ form_field(form.password, class_='form-control', placeholder='******')}}
        {{ form_field(form.password2, class_='form-control', placeholder='******')}}
        {{ form_field(form.nickname, class_='form-control')}}
        {{ form_field(form.role_id, class_='form-control')}}
        {{ form.submit(class_='btn btn-primary') }}
      </form>
  </div>
</div>
{% endblock %}
